package e107;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;

public class e107 {
	public static void main(String[] args) throws FileNotFoundException {
//		try {
//			ReadTextFile.read();
//		
//			
//				
//		}catch (IOException e) {
//			// TODO: handle exception
//			e.printStackTrace();
//		}
		String path = "C:/Users/Fabio/Desktop/finalworkspace/Euler_p/src/e107/network.txt";
		
		//ArrayList<int[]> matrix = ReadFile.read4(path);
		 
		int[][] matrix = ReadFile.read5(path);
		
		System.out.println(	matrix.toString());
		
		optimizeEdges(matrix);
		
	}
	
	private static void optimizeEdges(int[][] g){
		int place = 1;

		for(int i=0; i< g.length; i++){ //rows
			for(int j= place;j < g[0].length;j++){ //cols
				System.out.print(g[i][j]);
			}	
			place ++;
			System.out.println("");
		}
		
		
	
	}
	
	
}
